package com.neardrug.mapper;

import com.neardrug.entity.patent;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author rui
 * @ClassName: patentMapper
 * @create 2023-06-28 16:09
 */
@Mapper
//@CacheNamespace
public interface patentMapper {
    List<patent> findAll();

    List<patent> findByType(@Param("types") String[] types, @Param("pageNum") Integer pageNum,
                            @Param("pageSize") Integer pageSize);

    Integer selectTotal(@Param("types") String[] types);

}
